<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/IncludeTop.jsp" %>  
<html>
<head>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/moniterBanChang.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	<table width="100%" border="1">
		<tr>
			<th align="center" width="4%">
				联赛
			</th>
			<th align="center" width="8%">
				时间
			</th>
			<th align="center" width="20%">
				主客队伍
			</th>
			
			<th align="center">独赢</th>
			<th align="center" >让球</th>
			<th align="center" >大/小</th>
			
			<th align="center">操作</th>
		</tr>
		
		<c:forEach var="event" items="${events}" >
		<c:set var="map" value="${requestScope.counter[event.id]}" />
		<tr id="<c:out value="${ event.comp.id }" />">
			<td align="center">
				<c:out value="${event.comp.league.name_zh}" />
			</td>
			<td align="center">
				<fmt:formatDate value="${event.comp.time}" type="both" />
			</td>
			<td>
				<table>
					<tr>
						<td>
							<c:out value="${event.comp.home.name_zh}"></c:out>[主]
							<br/>
							<c:out value="${event.comp.road.name_zh}"></c:out>
						</td>
					</tr>
					<tr>
						<td>
							和局
						</td>
					</tr>
				</table>
			</td>
			<td align="center">
				<table>
					<tr>
						<td>
							<input type="text" size="7" name="duyingHalf.win" value="<c:out value="${event.duyingHalf.win}" />" name="" />
							<font color="red" size="-1">
								<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=dy_half_win">
									<c:out value="${map['dy_half_win']}" />/<c:out value="${map['sdy_half_win']}"/>
								</a>
							</font>
						</td>
					</tr>
					<tr>
						<td>
							<input type="text" name="duyingHalf.lose" value="<c:out value="${event.duyingHalf.lose}"  />" size="7" />
							<font color="red" size="-1">
								<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=dy_half_lose">
									<c:out value="${map['dy_half_lose']}" />/<c:out value="${map['sdy_half_lose']}"/>
								</a>
							</font> 
						</td>
					</tr>
					<tr>
						<td>
							<input type="text" name="duyingHalf.draw" value="<c:out value="${event.duyingHalf.draw}" />" size="7" /> 
							<font color="red" size="-1">
								<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=dy_half_draw">
									<c:out value="${map['dy_half_draw']}" />/<c:out value="${map['sdy_half_draw']}"/>
								</a>
							</font> 
						</td>
					</tr>
				</table>
			</td>
			<td>
				<table width="100%">
					<tr>
						<td align="right">
							<c:if test="${event.rangqiuHalf.who2who eq '主让客'}">
								<font color="blue"><c:out value="${event.rangqiuHalf.pankou}" /></font>&nbsp;
							</c:if>
							<input type="text" size="7" name="rangqiuHalf.home" value="<c:out value="${event.rangqiuHalf.home}" />" /> 
							<font color="red" size="-1">
								<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=rq_half_home">
									<c:out value="${map['rq_half_home']}" />/<c:out value="${map['srq_half_home']}"/>
								</a>
							</font> 
						</td>
					</tr>
					<tr>
						<td align="right">
							<c:if test="${event.rangqiuHalf.who2who eq '客让主'}">
								<font color="blue"><c:out value="${event.rangqiuHalf.pankou}" /></font>&nbsp;
							</c:if>
							<input type="text" name="rangqiuHalf.road" value="<c:out value="${event.rangqiuHalf.road}" />" size="7" /> 
							<font color="red" size="-1">
								<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=rq_half_road">
									<c:out value="${map['rq_half_road']}" />/<c:out value="${map['srq_half_road']}"/>
								</a>
							</font> 
						</td>
					</tr>
					<tr>
						<td>
							&nbsp;
						</td>
					</tr>
				</table>
			</td>
 			<td align="right">
				<table>
					<tr>
						<td>
							大 <c:out value="${event.daxiaoHalf.pankou}" />
							<input type="text" name="daxiaoHalf.home" value="<c:out value="${event.daxiaoHalf.home}" />" size="7" /> 
							<font color="red" size="-1">
								<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=dx_half_home">
									<c:out value="${map['dx_half_home']}" />/<c:out value="${map['sdx_half_home']}"/>
								</a>
							</font> 
						</td>
					</tr>
					<tr>
						<td>
							小 <c:out value="${event.daxiao.pankou}" />
							<input type="text" name="daxiaoHalf.road" value="<c:out value="${event.daxiaoHalf.road}" />" size="7" />  
							<font color="red" size="-1">
								<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=dx_half_road">
									<c:out value="${map['dx_half_road']}" />/<c:out value="${map['sdx_half_road']}"/>
								</a>
							</font> 
						</td>
					</tr>
					<tr>
						<td>
							&nbsp;
						</td>
					</tr>
				</table>
			</td>
			<td align="center">
				<input type="button"  value="提交" name="submit" onclick="clickSubmit(this)" />
			</td>
		</tr>
		</c:forEach>
	</table>
	<%@ include file="/WEB-INF/jsp/pager.jsp"%>
</body>
</html>